Optimal. Leaf size=79 \[ \frac {2 F\left (\left .e-\frac {\pi }{4}+f x\right |2\right ) \sec (e+f x) \sqrt {\sin (2 e+2 f x)}}{3 f \sqrt {d \tan (e+f x)}}+\frac {2 \sec (e+f x) \sqrt {d \tan (e+f x)}}{3 d f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2693, 2694,
2653, 2720} \begin {gather*} \frac {2 \sec (e+f x) \sqrt {d \tan (e+f x)}}{3 d f}+\frac {2 \sqrt {\sin (2 e+2 f x)} \sec (e+f x) F\left (\left .e+f x-\frac {\pi }{4}\right |2\right )}{3 f \sqrt {d \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2693
Rule 2694
Rule 2720
Rubi steps
\begin {align*} \int \frac {\sec ^3(e+f x)}{\sqrt {d \tan (e+f x)}} \, dx &=\frac {2 \sec (e+f x) \sqrt {d \tan (e+f x)}}{3 d f}+\frac {2}{3} \int \frac {\sec (e+f x)}{\sqrt {d \tan (e+f x)}} \, dx\\ &=\frac {2 \sec (e+f x) \sqrt {d \tan (e+f x)}}{3 d f}+\frac {\left (2 \sqrt {\sin (e+f x)}\right ) \int \frac {1}{\sqrt {\cos (e+f x)} \sqrt {\sin (e+f x)}} \, dx}{3 \sqrt {\cos (e+f x)} \sqrt {d \tan (e+f x)}}\\ &=\frac {2 \sec (e+f x) \sqrt {d \tan (e+f x)}}{3 d f}+\frac {\left (2 \sec (e+f x) \sqrt {\sin (2 e+2 f x)}\right ) \int \frac {1}{\sqrt {\sin (2 e+2 f x)}} \, dx}{3 \sqrt {d \tan (e+f x)}}\\ &=\frac {2 F\left (\left .e-\frac {\pi }{4}+f x\right |2\right ) \sec (e+f x) \sqrt {\sin (2 e+2 f x)}}{3 f \sqrt {d \tan (e+f x)}}+\frac {2 \sec (e+f x) \sqrt {d \tan (e+f x)}}{3 d f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 0.29, size = 68, normalized size = 0.86 \begin {gather*} \frac {2 \left (\sec ^2(e+f x)+2 \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};-\tan ^2(e+f x)\right ) \sqrt {\sec ^2(e+f x)}\right ) \sin (e+f x)}{3 f \sqrt {d \tan (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(195\) vs.
\(2(94)=188\).
time = 0.60, size = 196, normalized size = 2.48
method | result | size |
default | \(-\frac {\left (\cos \left (f x +e \right )-1\right ) \left (2 \EllipticF \left (\sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}, \frac {\sqrt {2}}{2}\right ) \sqrt {\frac {\cos \left (f x +e \right )-1}{\sin \left (f x +e \right )}}\, \sqrt {\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sqrt {-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}}\, \sin \left (f x +e \right ) \cos \left (f x +e \right )-\cos \left (f x +e \right ) \sqrt {2}+\sqrt {2}\right ) \left (\cos \left (f x +e \right )+1\right )^{2} \sqrt {2}}{3 f \sin \left (f x +e \right )^{3} \cos \left (f x +e \right )^{2} \sqrt {\frac {d \sin \left (f x +e \right )}{\cos \left (f x +e \right )}}}\) | \(196\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 0.10, size = 104, normalized size = 1.32 \begin {gather*} -\frac {2 \, {\left (\sqrt {i \, d} \cos \left (f x + e\right ) {\rm ellipticF}\left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right ), -1\right ) + \sqrt {-i \, d} \cos \left (f x + e\right ) {\rm ellipticF}\left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right ), -1\right ) - \sqrt {\frac {d \sin \left (f x + e\right )}{\cos \left (f x + e\right )}}\right )}}{3 \, d f \cos \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sec ^{3}{\left (e + f x \right )}}{\sqrt {d \tan {\left (e + f x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\cos \left (e+f\,x\right )}^3\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________